# @Version : 1.0
# @Author  : 刘宇
# @File    : 28_num_break.py
# @Time    : 2025/10/8 14:50

import random

count=0
while True:
    n=random.randint(1,100)
    print(f"生成的n是{n}")
    count+=1
    if n==97:
        break

print(f"生成97一共用了{count}次")